<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateInfosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('infos', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name');
            $table->integer('status');
            $table->integer('is_hot');
            $table->integer('is_push');
            $table->integer('is_new');
            $table->string('tag');
            $table->integer('xindex');
            $table->string('simpledescribe');
            $table->text('describe');
            $table->integer('author');
            $table->integer('author_role');
            $table->string('theme');
            $table->string('page_view');
            $table->string('jump_url');
            $table->decimal('price');
            $table->decimal('original_price');
            $table->integer('set_time_out');
            $table->integer('sale');
            $table->string('file');
            $table->string('extend_1');
            $table->string('extend_2');
            $table->string('extend_3');
            $table->string('extend_4');
            $table->string('extend_5');
            $table->string('extend_6');
            $table->string('extend_7');
            $table->string('extend_8');
            $table->string('extend_9');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('infos');
    }
}
